<template>
  <div>
    <CellListVue v-for="(item, index) in Collect" :key="index" :item="item" />
  </div>
</template>

<script>
import CellListVue from '@/components/CellList.vue'
import { AxiosrecordLikeCollect } from '@/api/user'
export default {
  name: 'CollectPage',
  data () {
    return {
      Collect: []
    }
  },
  components: {
    CellListVue
  },
  async created () {
    // 我的点赞或者收藏
    const { data: res } = await AxiosrecordLikeCollect({
      optType: 2,
      pageSize: 10,
      page: 1
    })
    this.Collect.push(...res.rows)
  }
}
</script>
